{layout name="admin/layout" /}
{css href="__ROOT__/public/static/css/reset.css" /}
{css href="__ROOT__/public/static/css/icon.css" /}
{css href="__ROOT__/public/static/css/common.css" /}
{css href="__ROOT__/public/static/css/main.css" /}
{css href="__ROOT__/public/static/layer/skin/layer.css" /}
<div id="right">
	<div class="boxes order">
			<div class="flex centerv rtitle"><i class="flexitem"></i><span class="flex center">订单信息</span></div>
			<div class="infotable">
				<table>
					<tbody>
						<tr>
							<td width="80">订单号</td>
							<td>{$list.i_number}</td>
							<td width="80">下单时间</td>
							<td>{$list.create_time}</td>
							<td width="80">订单状态</td>
							<td>{eq name="list.i_status" value="1"}已付款{else /}待付款{/eq}</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="flex centerv rtitle"><i class="flexitem"></i><span class="flex center">购买商品</span></div>
			<div class="infotable">
				<table>
					<tbody>
					<tr>
						<td width="80">名片名称</td>
						<td>{$list.product.p_name}</td>
						<td width="80">名片编号</td>
						<td>{$list.product.p_number}</td>
					</tr>
					</tbody>
				</table>
				<table>
					<thead>
						<tr>
							<th>产品图</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>
								<img src="{:config('image_path')}{$list.product.p_photo}" width="100"/>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="flex centerv rtitle"><i class="flexitem"></i><span class="flex center">费用统计</span></div>
			<div class="flexv listrows">
				<div class="flex endh"><em>x 1</em><span>定制数量</span></div>
				<div class="flex endh"><em>&yen; {$list.i_price}</em><span>定制单价</span></div>
				<div class="flex endh"><em>&yen; 15.00</em><span>快递费用</span></div>
				<div class="flex endh"><em style="color:#f00;">&yen;{$list.i_totprice}</em><span>合计费用</span></div>
			</div>
			<div class="flex centerv rtitle"><i class="flexitem"></i><span class="flex center">支付记录</span></div>
			<div class="infotable">
				<table>
					<tbody>
						{volist name="paylist" id="v"}
							<tr>
								<td>
									微信支付
								</td>
								<td>{$v.order}</td>
								<td>{$v.createtime|date="Y-m-d H:i:s",###}</td>
								<td align="right">
									{switch name="v['status']"}
										{case value="0"}<span style="color:#f00;">支付取消</span>{/case}
										{case value="1"}<span style="color:#00FF01;">完成支付</span>{/case}
									{/switch}
								</td>
							</tr>
						{/volist}
					</tbody>
				</table>
			</div>
			{empty name="paylist"}
				<div id="empty" class="flexv center"><i class="rd rd-empty icon"></i><p>该订单尚未支付~</p></div>
			{/empty}
			<div class="flex centerv rtitle"><i class="flexitem"></i><span class="flex center">收件人</span></div>
			<div class="infotable">
				<table>
					<tbody>
						<tr>
							<td width="80">收件人</td>
							<td>{$list.i_uname}</td>
							<td width="80">联系电话</td>
							<td>{$list.i_phone}</td>
							<td width="80">收件地址</td>
							<td>{$list.i_detail}</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="flex tfoot">

			</div>
		</div>
	</div>
	<div class="widget-main">
		{empty name='express'}
			<form class="form-inline" id="form" action="{:url('Indent/express')}" onsubmit="false">
				<select class="form-control" name="express_name" style="width: 100px;height: 40px">
					{volist name=":config('express_company')" id='v'}
					<option value="{$key}">{$v}</option>
					{/volist}
				</select>
				<input type="hidden" name="indent_id" value="{$list.id}">
				<input type="text" name="express_number" value="" style="height: 34px;width: 240px">
				<button class="btn btn-sm btn-success" type="button" id="submit" style="height: 40px;">&nbsp;发货&nbsp;</button>
			</form>
		{else /}
			<form class="form-inline" id="form" action="{:url('Indent/express')}" onsubmit="false">
				<select class="form-control" name="express_name" style="width: 100px;height: 40px">
					<option value="{$express.express_name}">{$express_company}</option>
					{volist name=":config('express_company')" id='v'}
						<option value="{$key}">{$v}</option>
					{/volist}
				</select>
				<input type="hidden" name="id" value="{$express.id}">
				<input type="text" name="express_number" value="{$express.express_number}" style="height: 34px;width: 240px">
				<button class="btn btn-sm btn-success" type="button" id="submit" style="height: 40px;">&nbsp;修改&nbsp;</button>
			</form>
		{/empty}
	</div>
